<template>
    <div class="pages">
        <div class="pages_news">
            <Button @click="back" class="buttonReturn">返回</Button>
            <h1 class="pages_news_detail title">{{title}}</h1>
            <div  class="pages_news_detail ql-editor" v-html="content">
            </div>
        </div>
    </div>
</template>

<script>
    import {getInformation} from '@/api/moduleIndex.js'
    export default {
        name: "information-detail",
        data(){
            return{
                content:'',
                title:''
            }
        },
        created(){
            let ID=this.getStore('pagesInformationDetail');
            this.getNew(ID)
        },
        mounted() {

        },
        methods:{
            back(){
                this.$router.go(-1);//返回上一层
            },
            getNew(ID){
                getInformation({id:ID}).then(res=>{
                    if(res.success){
                        this.content=res.result.conten;
                        this.title=res.result.title;
                    }

                })
            }
        }
    }
</script>

<style scoped>
    @import 'less/detail.less';
</style>
